#自定义过滤器，实现颜色过滤
def index_class(index):
   if index == 1:
       return "first"
   elif index == 2:
       return "second"
   elif index == 3:
       return "third"
   else:
       return ""


